package com.lagou.cl.core;

import java.util.List;


public class StandardEngine implements Lifecycle {

	private List<StandardHost> standardHosts;

	@Override
	public void init() {
		for (StandardHost host : this.standardHosts) {
			host.init();
		}
	}

	@Override
	public void start() {
		for (StandardHost host : this.standardHosts) {
			host.start();
		}
	}

	public List<StandardHost> getStandardHosts() {
		return standardHosts;
	}

	public void setStandardHosts(List<StandardHost> standardHosts) {
		this.standardHosts = standardHosts;
	}

}
